package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.domain.YdPerson;
import com.zhentao.service.YdPersonService;
import com.zhentao.mapper.YdPersonMapper;
import com.zhentao.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @description 针对表【yd_person(经手人表)】的数据库操作Service实现
*/
@Service
public class YdPersonServiceImpl extends ServiceImpl<YdPersonMapper, YdPerson>
    implements YdPersonService{
    @Autowired
    private YdPersonMapper ydPersonMapper;
    @Override
    public Result personList() {
        List<YdPerson> ydPeople = ydPersonMapper.selectList(null);
        return Result.success().put("data", ydPeople);
    }
}




